\section{TiXmlDeclaration Class Reference}
\label{classTiXmlDeclaration}\index{TiXmlDeclaration@{TiXmlDeclaration}}
{\tt \#include $<$tinyxml.h$>$}

Inheritance diagram for TiXmlDeclaration::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3cm]{classTiXmlDeclaration}
\end{center}
\end{figure}


\subsection{Detailed Description}
In correct XML the declaration is the first entry in the file. 

\footnotesize\begin{verbatim}
		<?xml version="1.0" standalone="yes"?>
	\end{verbatim}
\normalsize


TinyXml will happily read or write files without a declaration, however. There are 3 possible attributes to the declaration: version, encoding, and standalone.

Note: In this version of the code, the attributes are handled as special cases, not generic attributes, simply because there can only be at most 3 and they are always the same. \subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf TiXmlDeclaration} ()
\begin{CompactList}\small\item\em Construct an empty declaration. \item\end{CompactList}\item 
{\bf TiXmlDeclaration} (const char $\ast$\_\-version, const char $\ast$\_\-encoding, const char $\ast$\_\-standalone)
\begin{CompactList}\small\item\em Construct. \item\end{CompactList}\item 
{\bf TiXmlDeclaration} (const {\bf TiXmlDeclaration} \&copy)
\item 
void {\bf operator=} (const {\bf TiXmlDeclaration} \&copy)
\item 
virtual {\bf $\sim$TiXmlDeclaration} ()
\item 
const char $\ast$ {\bf Version} () const 
\begin{CompactList}\small\item\em Version. Will return an empty string if none was found. \item\end{CompactList}\item 
const char $\ast$ {\bf Encoding} () const 
\begin{CompactList}\small\item\em Encoding. Will return an empty string if none was found. \item\end{CompactList}\item 
const char $\ast$ {\bf Standalone} () const 
\begin{CompactList}\small\item\em Is this a standalone document? \item\end{CompactList}\item 
virtual {\bf TiXmlNode} $\ast$ {\bf Clone} () const 
\begin{CompactList}\small\item\em Creates a copy of this Declaration and returns it. \item\end{CompactList}\item 
virtual void {\bf Print} (FILE $\ast$cfile, int depth, TIXML\_\-STRING $\ast$str) const 
\item 
virtual void {\bf Print} (FILE $\ast$cfile, int depth) const 
\item 
virtual const char $\ast$ {\bf Parse} (const char $\ast$p, {\bf TiXmlParsingData} $\ast$data, {\bf TiXmlEncoding} encoding)
\item 
virtual const {\bf TiXmlDeclaration} $\ast$ {\bf ToDeclaration} () const 
\begin{CompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \item\end{CompactList}\item 
virtual {\bf TiXmlDeclaration} $\ast$ {\bf ToDeclaration} ()
\begin{CompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \item\end{CompactList}\item 
virtual bool {\bf Accept} ({\bf TiXmlVisitor} $\ast$visitor) const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf CopyTo} ({\bf TiXmlDeclaration} $\ast$target) const 
\end{CompactItemize}


\subsection{Constructor \& Destructor Documentation}
\index{TiXmlDeclaration@{TiXmlDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\index{TiXmlDeclaration@{TiXmlDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}TiXmlDeclaration::TiXmlDeclaration ()\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlDeclaration_a0484d059bea0ea1acb47c9094382d79}


Construct an empty declaration. 

\index{TiXmlDeclaration@{TiXmlDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\index{TiXmlDeclaration@{TiXmlDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}TiXmlDeclaration::TiXmlDeclaration (const char $\ast$ {\em \_\-version}, const char $\ast$ {\em \_\-encoding}, const char $\ast$ {\em \_\-standalone})}\label{classTiXmlDeclaration_3b618d1c30c25e4b7a71f31a595ee298}


Construct. 

\index{TiXmlDeclaration@{TiXmlDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\index{TiXmlDeclaration@{TiXmlDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}TiXmlDeclaration::TiXmlDeclaration (const {\bf TiXmlDeclaration} \& {\em copy})}\label{classTiXmlDeclaration_58ac9042c342f7845c8491da0bb091e8}


\index{TiXmlDeclaration@{TiXmlDeclaration}!$\sim$TiXmlDeclaration@{$\sim$TiXmlDeclaration}}
\index{$\sim$TiXmlDeclaration@{$\sim$TiXmlDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual TiXmlDeclaration::$\sim$TiXmlDeclaration ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlDeclaration_d5f37a673f4c507fd7e550470f9cec25}




\subsection{Member Function Documentation}
\index{TiXmlDeclaration@{TiXmlDeclaration}!operator=@{operator=}}
\index{operator=@{operator=}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlDeclaration::operator= (const {\bf TiXmlDeclaration} \& {\em copy})}\label{classTiXmlDeclaration_0fedc57539af9049be8db2d7d9d9ba33}


\index{TiXmlDeclaration@{TiXmlDeclaration}!Version@{Version}}
\index{Version@{Version}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ TiXmlDeclaration::Version () const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlDeclaration_02ee557b1a4545c3219ed377c103ec76}


Version. Will return an empty string if none was found. 

\index{TiXmlDeclaration@{TiXmlDeclaration}!Encoding@{Encoding}}
\index{Encoding@{Encoding}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ TiXmlDeclaration::Encoding () const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlDeclaration_5d974231f9e9a2f0542f15f3a46cdb76}


Encoding. Will return an empty string if none was found. 

\index{TiXmlDeclaration@{TiXmlDeclaration}!Standalone@{Standalone}}
\index{Standalone@{Standalone}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ TiXmlDeclaration::Standalone () const\hspace{0.3cm}{\tt  [inline]}}\label{classTiXmlDeclaration_9ff06afc033d7ef730ec7c6825b97ad9}


Is this a standalone document? 

\index{TiXmlDeclaration@{TiXmlDeclaration}!Clone@{Clone}}
\index{Clone@{Clone}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf TiXmlNode} $\ast$ TiXmlDeclaration::Clone () const\hspace{0.3cm}{\tt  [virtual]}}\label{classTiXmlDeclaration_ff8231266d735943d8a7514a9c9822b9}


Creates a copy of this Declaration and returns it. 



Implements {\bf TiXmlNode} \doxyref{}{p.}{classTiXmlNode_4508cc3a2d7a98e96a54cc09c37a78a4}.\index{TiXmlDeclaration@{TiXmlDeclaration}!Print@{Print}}
\index{Print@{Print}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlDeclaration::Print (FILE $\ast$ {\em cfile}, int {\em depth}, TIXML\_\-STRING $\ast$ {\em str}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classTiXmlDeclaration_a5ab32ec19d4eeecff4a9238c6c90565}


\index{TiXmlDeclaration@{TiXmlDeclaration}!Print@{Print}}
\index{Print@{Print}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void TiXmlDeclaration::Print (FILE $\ast$ {\em cfile}, int {\em depth}) const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlDeclaration_bf6303db4bd05b5be554036817ff1cb4}


All TinyXml classes can print themselves to a filestream or the string class (\doxyref{TiXmlString}{p.}{classTiXmlString} in non-STL mode, std::string in STL mode.) Either or both cfile and str can be null.

This is a formatted print, and will insert tabs and newlines.

(For an unformatted stream, use the $<$$<$ operator.) 

Implements {\bf TiXmlBase} \doxyref{}{p.}{classTiXmlBase_0de56b3f2ef14c65091a3b916437b512}.\index{TiXmlDeclaration@{TiXmlDeclaration}!Parse@{Parse}}
\index{Parse@{Parse}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ TiXmlDeclaration::Parse (const char $\ast$ {\em p}, {\bf TiXmlParsingData} $\ast$ {\em data}, {\bf TiXmlEncoding} {\em encoding})\hspace{0.3cm}{\tt  [virtual]}}\label{classTiXmlDeclaration_9839ea97ed687a2b7342fd7b0f04361b}




Implements {\bf TiXmlBase} \doxyref{}{p.}{classTiXmlBase_00e4edb0219d00a1379c856e5a1d2025}.\index{TiXmlDeclaration@{TiXmlDeclaration}!ToDeclaration@{ToDeclaration}}
\index{ToDeclaration@{ToDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual const {\bf TiXmlDeclaration}$\ast$ TiXmlDeclaration::ToDeclaration () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlDeclaration_1e085d3fefd1dbf5ccdbff729931a967}


Cast to a more defined type. Will return null not of the requested type. 



Reimplemented from {\bf TiXmlNode} \doxyref{}{p.}{classTiXmlNode_9f43e6984fc7d4afd6eb32714c6b7b72}.\index{TiXmlDeclaration@{TiXmlDeclaration}!ToDeclaration@{ToDeclaration}}
\index{ToDeclaration@{ToDeclaration}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf TiXmlDeclaration}$\ast$ TiXmlDeclaration::ToDeclaration ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlDeclaration_6bd3d1daddcaeb9543c24bfd090969ce}


Cast to a more defined type. Will return null not of the requested type. 



Reimplemented from {\bf TiXmlNode} \doxyref{}{p.}{classTiXmlNode_4027136ca820ff4a636b607231b6a6df}.\index{TiXmlDeclaration@{TiXmlDeclaration}!Accept@{Accept}}
\index{Accept@{Accept}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool TiXmlDeclaration::Accept ({\bf TiXmlVisitor} $\ast$ {\em visitor}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classTiXmlDeclaration_b6a6b178161ba9abc2c35058de689864}


Walk the XML tree visiting this node and all of its children. 

Implements {\bf TiXmlNode} \doxyref{}{p.}{classTiXmlNode_cc0f88b7462c6cb73809d410a4f5bb86}.\index{TiXmlDeclaration@{TiXmlDeclaration}!CopyTo@{CopyTo}}
\index{CopyTo@{CopyTo}!TiXmlDeclaration@{TiXmlDeclaration}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TiXmlDeclaration::CopyTo ({\bf TiXmlDeclaration} $\ast$ {\em target}) const\hspace{0.3cm}{\tt  [protected]}}\label{classTiXmlDeclaration_9d08959f935421a593032bd3efb30c38}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
/home/msneddon/eclipse/galileoSR1\_\-cpp/workspace/NFsim/src/NFinput/TinyXML/{\bf tinyxml.h}\item 
/home/msneddon/eclipse/galileoSR1\_\-cpp/workspace/NFsim/src/NFinput/TinyXML/{\bf tinyxml.cpp}\item 
/home/msneddon/eclipse/galileoSR1\_\-cpp/workspace/NFsim/src/NFinput/TinyXML/{\bf tinyxmlparser.cpp}\end{CompactItemize}
